﻿// JScript File

function createXMLHttpRequest() 
{
   try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
   try { return new XMLHttpRequest(); } catch(e) {}
   alert("XMLHttpRequest not supported");
   return null;
}

function getResponse(page)
{
    var xhReq = createXMLHttpRequest(); 
    xhReq.open("GET", page, false); 
    xhReq.send(null);
    var serverResponse = xhReq.responseText; 
    return serverResponse;
}